# Maintainer:
# Contributor: Stijn Seghers <stijnseghers at gmail dot com>

pkgname=python-pylint-venv
_pyname=pylint-venv
pkgver=3.0.2
pkgrel=1
pkgdesc='Make pylint respect virtualenvs'
arch=(any)
url="https://github.com/jgosmann/$_pyname"
license=(MIT)
depends=(python-pylint python-virtualenv)
makedepends=(python-build python-installer python-wheel python-poetry-core)
source=(https://github.com/jgosmann/$_pyname/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('c6d587a7a5ad9e5e2ef432a767ea042ad0878ba694821b923e7c70df99b91ef8')

build() {
    cd $_pyname-$pkgver
    python -m build --wheel --no-isolation
}

package() {
    cd $_pyname-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
}
